package com.zpark.cloud.alibaba.feign;

import com.zpark.cloud.alibaba.feign.impl.AccountFeignImpl;
import com.zpark.cloud.alibaba.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;

/**
 * 账户Feign接口
 */
@FeignClient(value = "${server-name.account}", fallback = AccountFeignImpl.class)
public interface IAccountFeign {

    @GetMapping("/account/change/{uid}/{money}")
    ResponseResult<Void> changeAccountResidue(@PathVariable("uid") Long uid, @PathVariable("money") BigDecimal money);
}
